package com.yunchao.feature.business.data.datasource.api

import com.yunchao.feature.base.HTTP_DOMAIN_INPUT_URL
import com.yunchao.feature.business.data.datasource.api.request.BusinessRequest
import com.yunchao.feature.business.data.datasource.api.response.BusinessResponse
import com.yunchao.library.http.ApiResult
import me.jessyan.retrofiturlmanager.RetrofitUrlManager
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

interface BusinessService {

    @Headers("${RetrofitUrlManager.DOMAIN_NAME_HEADER}${HTTP_DOMAIN_INPUT_URL}")
    @POST("handleTask")
    suspend fun businessRequestAsync(@Body request: BusinessRequest): ApiResult<BusinessResponse>
}